use axum::{
    routing::get,
    Router,
};
// use tower_http::trace::{DefaultMakeSpan, TraceLayer};
use com::wss::state;
mod master;

pub fn router() -> Router{
    Router::new()
    .route("/api/sys/test", get(master::test))
    .route("/recv_msg", get(com::wss::send_msg::ws_handler))
    // .layer( TraceLayer::new_for_http().make_span_with(DefaultMakeSpan::default().include_headers(true)) )
    .with_state(state::state())
}